// 视频中心
import httpAPI from '../../utils/http.js'

export default {
  /**
   * 视频列表
   * @param {Object} videoName
   */
  getVideoList (videoName) {
    if (videoName) {
      return httpAPI.post(`system/devices/getAppCamerasListByName/${videoName}`)
    } else {
      return httpAPI.post(`system/devices/getCamerasList`)
    }
  },
  /**
   * 获取视频详情
   * @param {Object} id 视频id
   */
  getVideoDetails(id) {
    return httpAPI.get(`system/devices/getCameras/${id}`)
  }
}
